package com.ssm.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Date;
import java.util.List;

/**
 * @author zy9524
 * @company SocialistSuccessor
 * @date 2019/6/9 14:29
 */

/**
 * @Data //@ToString，@EqualsAndHashCode和@Getter/@Setter和的特征@RequiredArgsConstructor
 * @NoArgsConstructor //  无参构造
 * @AllArgsConstructor //全参构造
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {
    private int id;
    private String username;
    private String password;
    private String sex;
    private Date date;
    private List<Role> roleList;

}
